﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using KYO.DAL;
using BusinessLayerHelper;
using ObjectPersistence;

public partial class Admin_Controls_Mod_Tab_TabList : ListControlBase<Tab>
{


    TabAssembler service = new TabAssembler();


    public override PersistentList<Tab> GetListObjects
       {
           get
           {
                    return  service.ReadCollectionAll();
               
        
           }
       }

       protected void Page_Load(object sender, EventArgs e)
       {

           if (!IsPostBack)
           {
               ToolbarBox1.Header = "Tab Manager";
               List<UrlItem> urls = new List<UrlItem>();
               UrlItem url = new UrlItem();
               url.Text = "Create New";
               url.Url = DoAction.ActionPageView("Tab", Action.EDIT);
               urls.Add(url);
            
               ToolbarBox1.Options = urls;

               LoadData();

           }
       }

    
}
